Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use clientOptions fix#275 - Allow connection to user schema other than public #277

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

jonesisg1
Copy link
Contributor

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Update serverSupabaseClient to use clientOptions from nuxt runtime config.

Allows server to connect to user defined schema other than public by setting clientOptions db schema

Resolves #275

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

This is my first pull request and I am not sure where the tests are if there are any.

@netlify
Copy link

netlify bot commented Sep 26, 2023

👷 Deploy request for n3-supabase pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ee5210e

Copy link
Collaborator

@larbish larbish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@larbish larbish merged commit c0097a3 into nuxt-modules:main Oct 6, 2023
danielroe pushed a commit that referenced this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nuxt.confg.ts supabase clientOptions db schema works for useSupabaseClient() but NOT serverSupabaseClient()
2 participants